<?php
namespace App\Validator\member\user;

use App\Validator\validate;

class login extends validate
{
    public function rules(): array
    {
        return [
            'phone' => [ 'required' ],
            'password' => [ 'required' ]
        ];
    }

    public function messages(): array
    {
        return [
            'phone.required' => '请填写手机号',
            'password.required' => '请填写密码'
        ];
    }

    public function scene(): array
    {
        return [
            'index' => [ 'phone' ]
        ];
    }
}